const express = require('express');
const artCateRouter = require('../router_handler/artcate')

const router = express.Router();
//获取文章分类列表
router.get('/cates', artCateRouter.getArticleCates);
//根据id查询文章
router.get('/cates:id', artCateRouter.getArtCateById);

// 根据 Id 更新文章分类的路由
router.post('/updatecate', artCateRouter.updateCateById)
// 根据 Id 删除文章分类的路由
router.get('/deletecate/:id', artCateRouter.deleteCateById)
// 新增文章分类的路由
router.post('/addcates', artCateRouter.addArticleCates)
module.exports = router;